package com.J1ay.carsys.service;

import com.J1ay.carsys.pojo.BowCar;
import com.J1ay.carsys.pojo.Result;
import org.apache.ibatis.annotations.Select;

/**
 * @Author J1ay
 * @Date 2021/6/3 20:48
 * @Description
 */

public interface UserService {
    /**
     * @Author J1ay
     * @Date 2021/6/3 22:02
     * @param
     * @Description 展示所有可借的车
     * @return
     */
    Result getUnBowCar();

    /**
     * @Author J1ay
     * @Date 2021/6/3 22:03
     * @param
     * @Description 查看自己借车记录
     * @return
     */
    Result getCarByUId(String UId);

    /**
     * @Author J1ay
     * @Date 2021/6/3 22:04
     * @param bowCar
     * @Description 借车
     * @return
     */
    Result addRecord(BowCar bowCar);

    /**
     * @Author J1ay
     * @Date 2021/6/3 22:04
     * @param bowCar
     * @Description 还车
     * @return
     */
    Result updateRecord(BowCar bowCar);

}
